﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DragLoveLineItem : MonoBehaviour
{
    public Transform topTsf;
    public Transform bottomTsf;
    public Transform textTsf;
    public DragObjectY doy;
    public LevelDragLove ldl;
    // Start is called before the first frame update
    void Start()
    {
        Invoke("SetTextPosition", 0.5f);
    }

    public void SetTextPosition()
    {
        textTsf.position = bottomTsf.position;
        doy.maxY = topTsf.position.y;
        doy.minY = bottomTsf.position.y;
        if (null != ldl)
        {
            ldl.maxPosY = doy.maxY;
            ldl.minPosY = doy.minY;
        }

    }
}
